package com.miplus.ccrm.common;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AI94R<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 请求头
     */
    @JsonProperty("head")
    private Ai94RetVo head;

    /**
     * Body
     */
    @JsonProperty("body")
    private T body;


    public static <T> AI94R<T> SuccessBody(T d)
    {
        AI94R<T> result=new AI94R<>();
        //"returnCode":"000000","returnMessage":"调用成功"
        Ai94RetVo ai94ReturnCode = new Ai94RetVo("000000","调用成功");
        result.setHead(ai94ReturnCode);

        result.setBody(d);
        return result;
    }

}